package com.cn.delan.web.mvc.core.bean;

import java.io.Serializable;
import java.sql.Timestamp;

public class SuperBean implements Comparable<SuperBean>,Serializable {
	
	private String id;
	private Integer sort = 0;
	private Timestamp lasttime = new Timestamp(System.currentTimeMillis());
	
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public Integer getSort() {
		return sort;
	}
	public void setSort(Integer sort) {
		this.sort = sort;
	}
	public Timestamp getLasttime() {
		return lasttime;
	}
	public void setLasttime(Timestamp lasttime) {
		this.lasttime = lasttime;
	}

	@Override
	public int compareTo(SuperBean record) {
		return this.sort-((SuperBean)record).getSort();
	}
	
	@Override
	public String toString(){
		return this.getId().toString();
	}

}
